/*
 * Copyright (c) 2023-2024 elsfs Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.elsfs.cloud.support.dict.entity;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.elsfs.cloud.common.core.entity.BaseEntity;

/**
 * 字典表
 *
 * @author zeng
 * @since 2024-07-27
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_dict")
public class SysDict extends BaseEntity {

  /** 字典ID */
  @TableId("dict_id")
  @TableField(condition = SqlCondition.LIKE)
  private String dictId;

  /** 字典类型 */
  @TableField(condition = SqlCondition.LIKE)
  private String dictCode;

  /** 字典名称 */
  @TableField(condition = SqlCondition.LIKE)
  private String dictName;

  /** 标准类型 */
  private String dictType;

  /** 参考网站 */
  @TableField(condition = SqlCondition.LIKE)
  private String website;

  /** 备注 */
  @TableField(condition = SqlCondition.LIKE)
  private String remark;

  /** 状态 0无效 1有效 */
  private String validFlag;

  /** 发布日期 */
  private LocalDate releaseDate;

  /** 实施日期 */
  private LocalDate implementationDate;

  /** 废止日期 */
  private LocalDate revocatoryDate;
}
